package com.cn.kehong.domain;

import com.cn.kehong.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class ProductPeiTou {
    private String id;

    private String productName;

    private String boxCode;

    private String productCode;

    private String factoryName;

    private String gradeValue;

    private String experimentCode;

    private String startCode;

    private String qiStartTime;

    private String qiUserName;

    private String peiStartTime;

    private String peiSpendTime;

    private String peiEndTime;

    private String peiUserName;

    private String banUserName;

    private String peiStatus;

    private String touStatus;

    private String status;

    private Date createTime;

    private Date updateTime;

    private String remark;

    private String whiteDuty;

    private String dutyDay;

    private String touStartTime;

    private String touEndTime;

    private String touSpendTime;

    private String chuStartTime;

    private String chuEndTime;

    private String chuStatus ;
    private String finalStatus;

    private int count;

    private int counts;
    private String jiWeightStatus;
    private String jiWeightTime;
    private String jiWeightUser;
    //理论产出
    private String llOutput;
    //实际产出
    private String sjOutput;

    List<ProductPeiJobSupplier> productPeiJobSuppliers;

    public static final transient Map<String, String> QISTATUSMAP =
            ImmutableMap.of("0", "待配料", "1", "配料中","2","已完成");

    public static final transient Map<String, String> TOUSTATUSMAP =
            ImmutableMap.of("0", "待投料", "1", "投料中","2","已完成");

    public static final transient Map<String, String> weightTUSMAP =
            ImmutableMap.of("0", "待计重", "1", "计重中","2","已完成");

    public static final transient Map<String, String> banCiTUSMAP =
            ImmutableMap.of("1", "A", "2", "B");
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    public String getBoxCode() {
        return boxCode;
    }

    public void setBoxCode(String boxCode) {
        this.boxCode = boxCode == null ? null : boxCode.trim();
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? null : productCode.trim();
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue == null ? null : gradeValue.trim();
    }

    public String getExperimentCode() {
        return experimentCode;
    }

    public void setExperimentCode(String experimentCode) {
        this.experimentCode = experimentCode == null ? null : experimentCode.trim();
    }

    public String getStartCode() {
        return startCode;
    }

    public void setStartCode(String startCode) {
        this.startCode = startCode == null ? null : startCode.trim();
    }

    public String getQiStartTime() {
        return qiStartTime;
    }

    public void setQiStartTime(String qiStartTime) {
        this.qiStartTime = qiStartTime == null ? null : qiStartTime.trim();
    }

    public String getQiUserName() {
        return qiUserName;
    }

    public void setQiUserName(String qiUserName) {
        this.qiUserName = qiUserName == null ? null : qiUserName.trim();
    }

    public String getPeiStartTime() {
        return peiStartTime;
    }

    public void setPeiStartTime(String peiStartTime) {
        this.peiStartTime = peiStartTime == null ? null : peiStartTime.trim();
    }

    public String getPeiSpendTime() {
        return peiSpendTime;
    }

    public void setPeiSpendTime(String peiSpendTime) {
        this.peiSpendTime = peiSpendTime == null ? null : peiSpendTime.trim();
    }

    public String getPeiEndTime() {
        return peiEndTime;
    }

    public void setPeiEndTime(String peiEndTime) {
        this.peiEndTime = peiEndTime == null ? null : peiEndTime.trim();
    }

    public String getPeiUserName() {
        return peiUserName;
    }

    public void setPeiUserName(String peiUserName) {
        this.peiUserName = peiUserName == null ? null : peiUserName.trim();
    }

    public String getBanUserName() {
        return banUserName;
    }

    public void setBanUserName(String banUserName) {
        this.banUserName = banUserName == null ? null : banUserName.trim();
    }


    public String getPeiStatusCn() {
        return QISTATUSMAP.get(getPeiStatus());
    }
    public String getPeiStatus() {
        return peiStatus;
    }

    public void setPeiStatus(String peiStatus) {
        this.peiStatus = peiStatus == null ? null : peiStatus.trim();
    }

    public String getTouStatusCn() {
        return TOUSTATUSMAP.get(getTouStatus());
    }
    public String getJiWeightStatusCn() {
        return weightTUSMAP.get(getJiWeightStatus());
    }
    public String getBanCiCn() {
        return banCiTUSMAP.get(getWhiteDuty());
    }

    public String getTouStatus() {
        return touStatus;
    }

    public void setTouStatus(String touStatus) {
        this.touStatus = touStatus == null ? null : touStatus.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getWhiteDuty() {
        return whiteDuty;
    }

    public void setWhiteDuty(String whiteDuty) {
        this.whiteDuty = whiteDuty == null ? null : whiteDuty.trim();
    }

    public String getDutyDay() {
        return dutyDay;
    }

    public void setDutyDay(String dutyDay) {
        this.dutyDay = dutyDay == null ? null : dutyDay.trim();
    }

    public String getTouStartTime() {
        return touStartTime;
    }

    public void setTouStartTime(String touStartTime) {
        this.touStartTime = touStartTime == null ? null : touStartTime.trim();
    }

    public String getTouEndTime() {
        return touEndTime;
    }

    public void setTouEndTime(String touEndTime) {
        this.touEndTime = touEndTime == null ? null : touEndTime.trim();
    }

    public String getTouSpendTime() {
        return touSpendTime;
    }

    public void setTouSpendTime(String touSpendTime) {
        this.touSpendTime = touSpendTime == null ? null : touSpendTime.trim();
    }

    public String getChuStartTime() {
        return chuStartTime;
    }

    public void setChuStartTime(String chuStartTime) {
        this.chuStartTime = chuStartTime == null ? null : chuStartTime.trim();
    }

    public String getChuEndTime() {
        return chuEndTime;
    }

    public void setChuEndTime(String chuEndTime) {
        this.chuEndTime = chuEndTime == null ? null : chuEndTime.trim();
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<ProductPeiJobSupplier> getProductPeiJobSuppliers() {
        return productPeiJobSuppliers;
    }

    public void setProductPeiJobSuppliers(List<ProductPeiJobSupplier> productPeiJobSuppliers) {
        this.productPeiJobSuppliers = productPeiJobSuppliers;
    }


    public String getChuStatus() {
        return chuStatus;
    }

    public void setChuStatus(String chuStatus) {
        this.chuStatus = chuStatus;
    }

    public String getFinalStatus() {
        return finalStatus;
    }

    public void setFinalStatus(String finalStatus) {
        this.finalStatus = finalStatus;
    }

    public int getCounts() {
        return counts;
    }

    public void setCounts(int counts) {
        this.counts = counts;
    }

    public String getJiWeightStatus() {
        return jiWeightStatus;
    }

    public void setJiWeightStatus(String jiWeightStatus) {
        this.jiWeightStatus = jiWeightStatus;
    }

    public String getJiWeightTime() {
        return jiWeightTime;
    }

    public void setJiWeightTime(String jiWeightTime) {
        this.jiWeightTime = jiWeightTime;
    }

    public String getJiWeightUser() {
        return jiWeightUser;
    }

    public void setJiWeightUser(String jiWeightUser) {
        this.jiWeightUser = jiWeightUser;
    }

    public String getLlOutput() {
        return llOutput;
    }

    public void setLlOutput(String llOutput) {
        this.llOutput = llOutput;
    }

    public String getSjOutput() {
        return sjOutput;
    }

    public void setSjOutput(String sjOutput) {
        this.sjOutput = sjOutput;
    }

    @Override
    public String toString() {
        return "ProductPeiTou{" +
                "id='" + id + '\'' +
                ", productName='" + productName + '\'' +
                ", boxCode='" + boxCode + '\'' +
                ", productCode='" + productCode + '\'' +
                ", factoryName='" + factoryName + '\'' +
                ", gradeValue='" + gradeValue + '\'' +
                ", experimentCode='" + experimentCode + '\'' +
                ", startCode='" + startCode + '\'' +
                ", qiStartTime='" + qiStartTime + '\'' +
                ", qiUserName='" + qiUserName + '\'' +
                ", peiStartTime='" + peiStartTime + '\'' +
                ", peiSpendTime='" + peiSpendTime + '\'' +
                ", peiEndTime='" + peiEndTime + '\'' +
                ", peiUserName='" + peiUserName + '\'' +
                ", banUserName='" + banUserName + '\'' +
                ", peiStatus='" + peiStatus + '\'' +
                ", touStatus='" + touStatus + '\'' +
                ", status='" + status + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                ", whiteDuty='" + whiteDuty + '\'' +
                ", dutyDay='" + dutyDay + '\'' +
                ", touStartTime='" + touStartTime + '\'' +
                ", touEndTime='" + touEndTime + '\'' +
                ", touSpendTime='" + touSpendTime + '\'' +
                ", chuStartTime='" + chuStartTime + '\'' +
                ", chuEndTime='" + chuEndTime + '\'' +
                ", count=" + count +
                ", productPeiJobSuppliers=" + productPeiJobSuppliers +
                '}';
    }
}